#pragma once
#include "viewinfo.h"

#include "DrawableWidget.h"

class ViewRotateYawPitch :
	public viewInfo, public ICustomOnMouse, public ICustomDraw
{
	int m_nFlagsLast;
	mdsVector<2, double> m_p2MousePosLast;

	int m_nAxisRot1, m_nAxisRot2;
	int m_nRotDir1, m_nRotDir2;
	bool m_bEyeLight;
public:
	ViewRotateYawPitch(void);
	virtual ~ViewRotateYawPitch(void);

	void SetEyeLight(bool bEyeLight)
	{
		m_bEyeLight = bEyeLight;
	}

	void SetRotAxis(int axis1, int axis2)
	{
		m_nAxisRot1 = axis1;
		m_nAxisRot2 = axis2;
	}

	void SetRotDir(int nDir1, int nDir2)
	{
		m_nRotDir1 = 1-2*(nDir1<1); 
		m_nRotDir2 = 1-2*(nDir2<1);
	}

	virtual void Draw();

	virtual bool OnMouseMove(UINT nFlags, double lfX, double lfY );

	
};
